package me.zhengjie.aspect;

import me.zhengjie.utils.SecurityUtils;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
public class CreateUpdateByAspect {
    @Pointcut("@annotation(me.zhengjie.annotation.SetCreateUpdateBy)")
    public void pointcut() {
    }

    @Before("pointcut()")
    public void checkAndSetCreateUpdateBy(JoinPoint joinPoint) {
        String name = joinPoint.getSignature().getName();
        System.out.println("checkAndSetCreateUpdateBy:"+name);
    }
}
